home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •The Arcade• / Tilt v1.1••• / Tilt v1.1еее / background_3235.txt < prev    next >
Text File  |  1990-10-02  |  19KB  |  832 lines

  1. -- background: 3235 from stack: in.1–µ–µ–µ
  2. -- bmap block id: 9132
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. On openBackground
  8. end openBackground
  9.  
  10. On giveResults
  11.   global oppAim
  12.   global oppLanceFlag
  13.   global yourLanceFlag
  14.   global yourLances
  15.   global oppLances
  16.   global oppMissFlag
  17.   global yourMissFlag
  18.   global youThud
  19.   global compThud
  20.   global attacker
  21.   global oppHitBarrier
  22.   global youHitBarrier
  23.   global oppHitHorse
  24.   global youHitHorse
  25.   global aFlag
  26.   global hitYourCrest
  27.   global hitOppCrest
  28.   global yourThudScore
  29.   global oppThudScore
  30.   global oppCrestScore
  31.   global yourCrestScore
  32.   global oppGoneFlag
  33.   global youGoneFlag
  34.   global x
  35.   global oppGoesThud
  36.   global youGoThud
  37.   global oldOppLances
  38.   global oldYourLances
  39.   global oppLanceWin
  40.   global youLanceWin
  41.   global winLose
  42.   global check
  43.   global oppcheck
  44.   global youBrokeScore
  45.   global oppBrokeScore
  46.   -- Where opponent is aiming
  47.   If oppAim =1 then put "Crest of Helm" into line two of field 1
  48.   If oppAim =2 then put "Helm" into line two of field 1
  49.   If oppAim =3 then put "Throat Gorget" into line two of field 1
  50.   If oppAim =4 then put "Dexter Chief" into line two of field 1
  51.   If oppAim =5 then put "Chief Pale" into line two of field 1
  52.   If oppAim =6 then put "Sinister Chief" into line two of field 1
  53.   If oppAim =7 then put "Dexter Fess" into line two of field 1
  54.   If oppAim =8 then put "Fess Pale" into line two of field 1
  55.   If oppAim =9 then put "Sinister Fess" into line two of field 1
  56.   If oppAim =10 then put "Shield Base" into line two of field 1
  57.   -- Opponent breaks lance
  58.   if oppLanceFlag=1 then
  59.     put "He Broke Lance!" into line three of field 1
  60.     put 0 into oppLanceFlag
  61.   end if
  62.   -- You break lance
  63.   if yourLanceFlag=1 then
  64.     put "You Broke Lance!" into line five of field 1
  65.     put 0 into yourLanceFlag
  66.   end if
  67.   -- Opponent Misses
  68.   If oppMissFlag=1 then
  69.     put "He Missed!" into line three of field 1
  70.     put 0 into oppMissFlag
  71.   end if
  72.   -- You Miss
  73.   If yourMissFlag=1 then
  74.     put "You Missed!" into line five of field 1
  75.     put 0 into yourMissflag
  76.   end if
  77.   -- Unhorsing
  78.   If youThud = 1 then
  79.     put "He Unhorsed You!" into line 4 of field 1
  80.     put 0 into youThud
  81.     add 1 to oppThudScore
  82.     put "Opponents Unhorsed: "&oppThudScore into line 2 of field 2
  83.     put 1 into youGoThud
  84.     put 1 into winLose
  85.   end if
  86.   If compThud = 1 then
  87.     put "You Unhorsed Him!" into line 6 of field 1
  88.     put 0 into compThud
  89.     add 1 to yourThudScore
  90.     put "Opponents Unhorsed: "&yourThudScore into line 2 of field 3
  91.     put 1 into oppGoesThud
  92.     put 1 into winLose
  93.   end if
  94.   -- Foul
  95.   If oppHitBarrier = 1 then
  96.     put "FOUL! Opponent Hits Wall" into line 4 of field 1
  97.     put 0 into oppHitBarrier
  98.     put oppLances - 1 into oppLances
  99.   end if
  100.   If oppHitHorse = 1 then
  101.     put "FOUL! Opponent Hits Horse!" into line 4 of field 1
  102.     put 0 into oppHitHorse
  103.     put 1 into oppGoneFlag
  104.     put 1 into winLose
  105.   end if
  106.   If youHitBarrier = 1 then
  107.     put "FOUL! You Hit Wall" into line 6 of field 1
  108.     put 0 into youHitBarrier
  109.     put yourLances - 1 into yourLances
  110.   end if
  111.   If youHitHorse = 1 then
  112.     put "FOUL! You Hit Horse!" into line 6 of field 1
  113.     put 0 into youHitHorse
  114.     put 1 into youGoneFlag
  115.     put 1 into winLose
  116.   end if
  117.   -- Crests
  118.   If hitYourCrest = 1 then
  119.     put "HE TORE YOUR CREST!!!" into line 4 of field 1
  120.     add 1 to oppCrestScore
  121.     put 0 into hitYourCrest
  122.   end if
  123.   If hitOppCrest = 1 then
  124.     put "YOU TORE HIS CREST!!" into line 6 of field 1
  125.     add 1 to yourCrestScore
  126.     put 0 into hitOppCrest
  127.   end if
  128.   set the lockScreen to true
  129.   put "Crests Claimed: "&oppCrestScore into line 1 of field 2
  130.   put "Crests Claimed: "&yourCrestScore into line 1 of field 3
  131.   put "Opponents Unhorsed: "&yourThudScore into line 2 of field 3
  132.   put "Opponents Unhorsed: "&oppThudScore into line 2 of field 2
  133.   put "Lances Broken: "&oppBrokeScore into line 3 of field 2
  134.   put "Lances Broken: "&youBrokeScore into line 3 of field 3
  135.   put "Lances Total: "&yourLances into line 4 of field 3
  136.   put "Lances Total: "&oppLances into line 4 of field 2
  137.   if oppBrokeScore = 3 then put 1 into oppLanceWin
  138.   if youBrokeScore = 3 then put 1 into youLanceWin
  139.  
  140. End giveResults
  141.  
  142.  
  143.  
  144. On lanceHit
  145.   global aFlag
  146.   global eFlag
  147.   global attacker
  148.   global oppLances
  149.   global YourLances
  150.   global oppLanceFlag
  151.   global yourLanceFlag
  152.   global oppLanceWin
  153.   global youLanceWin
  154.   global check
  155.   global oppCheck
  156.   global youBrokeScore
  157.   global oppBrokeScore
  158.   global winlose
  159.   If eFlag =1 then maybeFall
  160.   If attacker = 1 then
  161.     put 1 into oppLanceFlag
  162.     add 1 to oppLances
  163.     add 1 to oppcheck
  164.     add 1 to oppBrokeScore
  165.     if oppcheck = 3 then
  166.       put 1 into winLose
  167.       put 0 into oppcheck
  168.       put 0 into check
  169.     end if
  170.   end if
  171.   if attacker = 2 then
  172.     put 1 into yourLanceFlag
  173.     add 1 to yourLances
  174.     add 1 to check
  175.     add 1 to youBrokeScore
  176.     if check = 3 then
  177.       put 1 into winLose
  178.       put 0 into check
  179.       put 0 into oppcheck
  180.     end if
  181.   end if
  182.  
  183.   put 0 into eFlag
  184.   If aFlag = 1 then maybeCrest
  185. End lanceHit
  186.  
  187. On miss
  188.   global dFlag
  189.   global attacker
  190.   global oppMissFlag
  191.   global yourMissFlag
  192.   if attacker = 1 then put 1 into oppMissFlag
  193.   if attacker = 2 then put 1 into yourMissFlag
  194.   if dFlag = 1 then maybefoul
  195. end Miss
  196.  
  197. On dice
  198.   global roll
  199.   Put the random of 20 into roll
  200. End dice
  201.  
  202. on maybeFall
  203.   dice
  204.   global eFlag
  205.   global roll
  206.   global compThud
  207.   global youThud
  208.   global attacker
  209.   global yourLanceFlag
  210.   global oppLanceFlag
  211.   If (eFlag = 1) and (attacker = 1) then
  212.     if roll <=6 then put 1 into youThud
  213.   end if
  214.   If (eFlag = 1) and (attacker = 2) then
  215.     if roll <=6 then put 1 into compThud
  216.   end if
  217.   put 0 into eFlag
  218. end maybeFall
  219.  
  220. on maybeFoul
  221.   global dFlag
  222.   global roll
  223.   global attacker
  224.   global oppHitBarrier
  225.   global youHitBarrier
  226.   global oppHitHorse
  227.   global youHitHorse
  228.   put 0 into dFlag
  229.   dice
  230.   If attacker = 1 and roll <=5 then
  231.     put 1 into oppHitBarrier
  232.   end if
  233.   if attacker = 1 and roll >5 and roll <9 then
  234.     put 1 into oppHitHorse
  235.   end if
  236.   If attacker = 2 and roll <=5 then
  237.     put 1 into youHitBarrier
  238.   end if
  239.   if attacker = 2 and roll >6 and roll <9 then
  240.     put 1 into youHitHorse
  241.   end if
  242. end maybeFoul
  243.  
  244. On maybeCrest
  245.   global aFlag
  246.   global hitYourCrest
  247.   global hitOppCrest
  248.   global attacker
  249.   global roll
  250.   put 0 into aFlag
  251.   dice
  252.   If attacker = 1 and roll <6 then put 1 into hitYourCrest
  253.   If attacker = 2 and roll <6 then put 1 into hitOppCrest
  254. end maybeCrest
  255.  
  256. --******************************************
  257. On lrCRT
  258.   global attacker
  259.   global CRTdefense
  260.   global CRToffense
  261.   global defense
  262.   global oppDefense
  263.   global aimPoint
  264.   global eFlag
  265.   global dFlag
  266.   global roll
  267.   global tempCompScore
  268.   global tempYouScore
  269.   global tempCompMiss
  270.   global tempYouMiss
  271.   global oppAim
  272.   put 0 into dFlag
  273.   put 0 into eFlag
  274.   If attacker = 1 then
  275.     put defense-20 into CRTdefense
  276.     put oppAim into CRToffense
  277.   end if
  278.   If attacker = 2 then
  279.     put oppDefense into CRTdefense
  280.     put aimPoint-1 into CRToffense
  281.   end if
  282.   If CRToffense = 1 then
  283.     dice
  284.     if roll >= 19 then lanceHit else miss
  285.   end if
  286.   If CRToffense = 2 then
  287.     dice
  288.     put 1 into dFlag
  289.     if roll >= 18 then lanceHit else miss
  290.     put 0 into dFlag
  291.   end if
  292.   If CRToffense = 3 then
  293.     dice
  294.     put 1 into dFlag
  295.     if roll >= 17 then lanceHit else miss
  296.     put 0 into dFlag
  297.   end if
  298.   If CRToffense = 4 then
  299.     dice
  300.     if roll >= 6 then lanceHit else miss
  301.   end if
  302.   If CRToffense = 5 then
  303.     dice
  304.     if roll >= 11 then lanceHit else miss
  305.   end if
  306.   If CRToffense = 6 then
  307.     dice
  308.     put 1 into dFlag
  309.     if roll >= 19 then lanceHit else miss
  310.     put 0 into dFlag
  311.   end if
  312.   If CRToffense = 7 then
  313.     dice
  314.     put 1 into eFlag
  315.     if roll >= 9 then lanceHit else miss
  316.     put 0 into eFlag
  317.   end if
  318.   If CRToffense = 8 then
  319.     dice
  320.     if roll >= 11 then lanceHit else miss
  321.   end if
  322.   If CRToffense = 9 then
  323.     dice
  324.     put 1 into dFlag
  325.     if roll >= 17 then lanceHit else miss
  326.     put 0 into dFlag
  327.   end if
  328.   If CRToffense = 10 then
  329.     dice
  330.     put 1 into dFlag
  331.     if roll >= 13 then lanceHit else miss
  332.     put 0 into dFlag
  333.   end if
  334. End lrCRT
  335. --**********************************************
  336.  
  337. --**********************************************
  338. On llCRT
  339.   global attacker
  340.   global CRTdefense
  341.   global CRToffense
  342.   global defense
  343.   global oppDefense
  344.   global aimPoint
  345.   global eFlag
  346.   global dFlag
  347.   global roll
  348.   global tempCompScore
  349.   global tempYouScore
  350.   global tempCompMiss
  351.   global tempYouMiss
  352.   global oppAim
  353.   put 0 into dFlag
  354.   put 0 into eFlag
  355.   If attacker = 1 then
  356.     put defense-20 into CRTdefense
  357.     put oppAim into CRToffense
  358.   end if
  359.   If attacker = 2 then
  360.     put oppDefense into CRTdefense
  361.     put aimPoint-1 into CRToffense
  362.   end if
  363.   If CRToffense = 1 then
  364.     dice
  365.     if roll >= 15 then lanceHit else miss
  366.   end if
  367.   If CRToffense = 2 then
  368.     dice
  369.     put 1 into eFlag
  370.     if roll >= 13 then lanceHit else miss
  371.     put 0 into eFlag
  372.   end if
  373.   If CRToffense = 3 then
  374.     dice
  375.     if roll >= 13 then lanceHit else miss
  376.   end if
  377.   If CRToffense = 4 then
  378.     dice
  379.     put 1 into dFlag
  380.     if roll >= 17 then lanceHit else miss
  381.     put 0 into dFlag
  382.   end if
  383.   If CRToffense = 5 then
  384.     dice
  385.     if roll >= 9 then lanceHit else miss
  386.   end if
  387.   If CRToffense = 6 then
  388.     dice
  389.     if roll >= 7 then lanceHit else miss
  390.   end if
  391.   If CRToffense = 7 then
  392.     dice
  393.     put 1 into dFlag
  394.     if roll >= 15 then lanceHit else miss
  395.     put 0 into dFlag
  396.   end if
  397.   If CRToffense = 8 then
  398.     dice
  399.     if roll >= 6 then lanceHit else miss
  400.   end if
  401.   If CRToffense = 9 then
  402.     dice
  403.     put 1 into eFlag
  404.     if roll >= 8 then lanceHit else miss
  405.     put 0 into eFlag
  406.   end if
  407.   If CRToffense = 10 then
  408.     dice
  409.     put 1 into eFlag
  410.     if roll >= 4 then lanceHit else miss
  411.     put 0 into eFlag
  412.   end if
  413. End llCRT
  414. --**********************************************
  415.  
  416. --**********************************************
  417. On ssCRT
  418.   global attacker
  419.   global CRTdefense
  420.   global CRToffense
  421.   global defense
  422.   global oppDefense
  423.   global aimPoint
  424.   global aFlag
  425.   global eFlag
  426.   global dFlag
  427.   global roll
  428.   global tempCompScore
  429.   global tempYouScore
  430.   global tempCompMiss
  431.   global tempYouMiss
  432.   global oppAim
  433.   put 0 into aFlag
  434.   put 0 into dFlag
  435.   put 0 into eFlag
  436.   If attacker = 1 then
  437.     put defense-20 into CRTdefense
  438.     put oppAim into CRToffense
  439.   end if
  440.   If attacker = 2 then
  441.     put oppDefense into CRTdefense
  442.     put aimPoint-1 into CRToffense
  443.   end if
  444.   If CRToffense = 1 then
  445.     dice
  446.     put 1 into aFlag
  447.     if roll >= 13 then lanceHit else miss
  448.     put 0 into aFlag
  449.   end if
  450.   If CRToffense = 2 then
  451.     dice
  452.     put 1 into eFlag
  453.     if roll >= 11 then lanceHit else miss
  454.     put 0 into eFlag
  455.   end if
  456.   If CRToffense = 3 then
  457.     dice
  458.     if roll >= 11 then lanceHit else miss
  459.   end if
  460.   If CRToffense = 4 then
  461.     dice
  462.     if roll >= 6 then lanceHit else miss
  463.   end if
  464.   If CRToffense = 5 then
  465.     dice
  466.     put 1 into eFlag
  467.     if roll >= 6 then lanceHit else miss
  468.     put 0 into eFlag
  469.   end if
  470.   If CRToffense = 6 then
  471.     dice
  472.     if roll >= 9 then lanceHit else miss
  473.   end if
  474.   If CRToffense = 7 then
  475.     dice
  476.     if roll >= 5 then lanceHit else miss
  477.   end if
  478.   If CRToffense = 8 then
  479.     dice
  480.     put 1 into eFlag
  481.     if roll >= 3 then lanceHit else miss
  482.     put 0 into eFlag
  483.   end if
  484.   If CRToffense = 9 then
  485.     dice
  486.     put 1 into eFlag
  487.     if roll >= 11 then lanceHit else miss
  488.     put 0 into eFlag
  489.   end if
  490.   If CRToffense = 10 then
  491.     dice
  492.     if roll >= 6 then lanceHit else miss
  493.   end if
  494. End ssCRT
  495. --**********************************************
  496.  
  497. --**********************************************
  498. On shCRT
  499.   global attacker
  500.   global CRTdefense
  501.   global CRToffense
  502.   global defense
  503.   global oppDefense
  504.   global aimPoint
  505.   global eFlag
  506.   global dFlag
  507.   global roll
  508.   global tempCompScore
  509.   global tempYouScore
  510.   global tempCompMiss
  511.   global tempYouMiss
  512.   global oppAim
  513.   put 0 into dFlag
  514.   put 0 into eFlag
  515.   If attacker = 1 then
  516.     put defense-20 into CRTdefense
  517.     put oppAim into CRToffense
  518.   end if
  519.   If attacker = 2 then
  520.     put oppDefense into CRTdefense
  521.     put aimPoint-1 into CRToffense
  522.   end if
  523.   If CRToffense = 1 then
  524.     dice
  525.     if roll >= 17 then lanceHit else miss
  526.   end if
  527.   If CRToffense = 2 then
  528.     dice
  529.     if roll >= 15 then lanceHit else miss
  530.   end if
  531.   If CRToffense = 3 then
  532.     dice
  533.     if roll >= 17 then lanceHit else miss
  534.   end if
  535.   If CRToffense = 4 then
  536.     dice
  537.     if roll >= 6 then lanceHit else miss
  538.   end if
  539.   If CRToffense = 5 then
  540.     dice
  541.     if roll >= 9 then lanceHit else miss
  542.   end if
  543.   If CRToffense = 6 then
  544.     dice
  545.     if roll >= 13 then lanceHit else miss
  546.   end if
  547.   If CRToffense = 7 then
  548.     dice
  549.     if roll >= 9 then lanceHit else miss
  550.   end if
  551.   If CRToffense = 8 then
  552.     dice
  553.     if roll >= 6 then lanceHit else miss
  554.   end if
  555.   If CRToffense = 9 then
  556.     dice
  557.     if roll >= 11 then lanceHit else miss
  558.   end if
  559.   If CRToffense = 10 then
  560.     dice
  561.     put 1 into eFlag
  562.     if roll >= 3 then lanceHit else miss
  563.     put 0 into eFlag
  564.   end if
  565. End shCRT
  566. --**********************************************
  567.  
  568. --**********************************************
  569. On slCRT
  570.   global attacker
  571.   global CRTdefense
  572.   global CRToffense
  573.   global defense
  574.   global oppDefense
  575.   global aimPoint
  576.   global aFlag
  577.   global eFlag
  578.   global dFlag
  579.   global roll
  580.   global tempCompScore
  581.   global tempYouScore
  582.   global tempCompMiss
  583.   global tempYouMiss
  584.   global oppAim
  585.   put 0 into aFlag
  586.   put 0 into dFlag
  587.   put 0 into eFlag
  588.   If attacker = 1 then
  589.     put defense-20 into CRTdefense
  590.     put oppAim into CRToffense
  591.   end if
  592.   If attacker = 2 then
  593.     put oppDefense into CRTdefense
  594.     put aimPoint-1 into CRToffense
  595.   end if
  596.   If CRToffense = 1 then
  597.     dice
  598.     put 1 into aFlag
  599.     if roll >= 11 then lanceHit else miss
  600.     put 0 into aFlag
  601.   end if
  602.   If CRToffense = 2 then
  603.     dice
  604.     put 1 into eFlag
  605.     if roll >= 13 then lanceHit else miss
  606.     put 0 into eFlag
  607.   end if
  608.   If CRToffense = 3 then
  609.     dice
  610.     put 1 into eFlag
  611.     if roll >= 15 then lanceHit else miss
  612.     put 0 into eFlag
  613.   end if
  614.   If CRToffense = 4 then
  615.     dice
  616.     if roll >= 15 then lanceHit else miss
  617.   end if
  618.   If CRToffense = 5 then
  619.     dice
  620.     put 1 into eFlag
  621.     if roll >= 6 then lanceHit else miss
  622.     put 0 into eFlag
  623.   end if
  624.   If CRToffense = 6 then
  625.     dice
  626.     if roll >= 11 then lanceHit else miss
  627.   end if
  628.   If CRToffense = 7 then
  629.     dice
  630.     if roll >= 5 then lanceHit else miss
  631.   end if
  632.   If CRToffense = 8 then
  633.     dice
  634.     if roll >= 9 then lanceHit else miss
  635.   end if
  636.   If CRToffense = 9 then
  637.     dice
  638.     if roll >= 13 then lanceHit else miss
  639.   end if
  640.   If CRToffense = 10 then
  641.     dice
  642.     if roll >= 11 then lanceHit else miss
  643.   end if
  644. End slCRT
  645. --**********************************************
  646.  
  647. --**********************************************
  648. On lhCRT
  649.   global attacker
  650.   global CRTdefense
  651.   global CRToffense
  652.   global defense
  653.   global oppDefense
  654.   global aimPoint
  655.   global eFlag
  656.   global dFlag
  657.   global roll
  658.   global tempCompScore
  659.   global tempYouScore
  660.   global tempCompMiss
  661.   global tempYouMiss
  662.   global oppAim
  663.   put 0 into dFlag
  664.   put 0 into eFlag
  665.   If attacker = 1 then
  666.     put defense-20 into CRTdefense
  667.     put oppAim into CRToffense
  668.   end if
  669.   If attacker = 2 then
  670.     put oppDefense into CRTdefense
  671.     put aimPoint-1 into CRToffense
  672.   end if
  673.   If CRToffense = 1 then
  674.     dice
  675.     if roll >= 19 then lanceHit else miss
  676.   end if
  677.   If CRToffense = 2 then
  678.     dice
  679.     if roll >= 16 then lanceHit else miss
  680.   end if
  681.   If CRToffense = 3 then
  682.     dice
  683.     if roll >= 16 then lanceHit else miss
  684.   end if
  685.   If CRToffense = 4 then
  686.     dice
  687.     if roll >= 9 then lanceHit else miss
  688.   end if
  689.   If CRToffense = 5 then
  690.     dice
  691.     put 1 into eFlag
  692.     if roll >= 6 then lanceHit else miss
  693.     put 0 into eFlag
  694.   end if
  695.   If CRToffense = 6 then
  696.     dice
  697.     if roll >= 13 then lanceHit else miss
  698.   end if
  699.   If CRToffense = 7 then
  700.     dice
  701.     if roll >= 9 then lanceHit else miss
  702.   end if
  703.   If CRToffense = 8 then
  704.     dice
  705.     if roll >= 5 then lanceHit else miss
  706.   end if
  707.   If CRToffense = 9 then
  708.     dice
  709.     if roll >= 11 then lanceHit else miss
  710.   end if
  711.   If CRToffense = 10 then
  712.     dice
  713.     if roll >= 11 then lanceHit else miss
  714.   end if
  715. End lhCRT
  716. --**********************************************
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727. -- part 2 (field)
  728. -- low flags: 01
  729. -- high flags: 0002
  730. -- rect: left=275 top=130 right=239 bottom=501
  731. -- title width / last selected line: 0
  732. -- icon id / first selected line: 0 / 0
  733. -- text alignment: 0
  734. -- font id: 5
  735. -- text size: 14
  736. -- style flags: 0
  737. -- line height: 18
  738. -- part name: ResultBox
  739.  
  740.  
  741. -- part 3 (field)
  742. -- low flags: 01
  743. -- high flags: 0002
  744. -- rect: left=4 top=265 right=338 bottom=235
  745. -- title width / last selected line: 0
  746. -- icon id / first selected line: 0 / 0
  747. -- text alignment: 0
  748. -- font id: 5
  749. -- text size: 14
  750. -- style flags: 0
  751. -- line height: 18
  752. -- part name: OwnHonorsBox
  753.  
  754.  
  755. -- part 4 (field)
  756. -- low flags: 01
  757. -- high flags: 0002
  758. -- rect: left=247 top=265 right=338 bottom=499
  759. -- title width / last selected line: 0
  760. -- icon id / first selected line: 0 / 0
  761. -- text alignment: 0
  762. -- font id: 5
  763. -- text size: 14
  764. -- style flags: 0
  765. -- line height: 18
  766. -- part name: OppHonorsBox
  767.  
  768.  
  769. -- part 6 (field)
  770. -- low flags: 01
  771. -- high flags: 0000
  772. -- rect: left=275 top=130 right=151 bottom=502
  773. -- title width / last selected line: 0
  774. -- icon id / first selected line: 0 / 0
  775. -- text alignment: 0
  776. -- font id: 5
  777. -- text size: 14
  778. -- style flags: 0
  779. -- line height: 18
  780. -- part name: 
  781.  
  782.  
  783. -- part 8 (button)
  784. -- low flags: 00
  785. -- high flags: 0000
  786. -- rect: left=271 top=23 right=49 bottom=374
  787. -- title width / last selected line: 0
  788. -- icon id / first selected line: 0 / 0
  789. -- text alignment: 1
  790. -- font id: 0
  791. -- text size: 12
  792. -- style flags: 0
  793. -- line height: 16
  794. -- part name: New Button
  795. ----- HyperTalk script -----
  796. on mouseUp
  797.   global turn
  798.   if turn > 0 then
  799.     set the lockScreen to true
  800.     put "                         " into line 2 of field 1
  801.     put "                         " into line 3 of field 1
  802.     put "                         " into line 4 of field 1
  803.     put "                         " into line 5 of field 1
  804.     put "                         " into line 6 of field 1
  805.     put "Crests Claimed: " into line 1 of field 2
  806.     put "Crests Claimed: " into line 1 of field 3
  807.     put "Opponents Unhorsed: " into line 2 of field 2
  808.     put "Opponents Unhorsed: " into line 2 of field 3
  809.     put "Lances Broken: " into line 3 of field 2
  810.     put "Lances Broken: " into line 3 of field 3
  811.     put "Lances Total: " into line 4 of field 3
  812.     put "Lances Total: " into line 4 of field 2
  813.   end if
  814.  
  815.   play "boing"
  816.  
  817.   global oppThudScore
  818.   global turn
  819.   global oppCrestScore
  820.   global yourCrestScore
  821.   global oppGoneFlag
  822.   global youGoneFlag
  823.   global youGoThud
  824.   global oppGoesThud
  825.   global oppLanceWin
  826.   global youLanceWin
  827.   global winLose
  828.   If winLose = 1 then go Card 10
  829.   If winLose = 0 then go to card 2
  830. end mouseUp
  831.  
  832.